import App from './App'
import {
	createSSRApp
} from 'vue'
import pinia from '@/stores/index.js'

import {
	TextEncoder,
	TextDecoder
} from 'text-decoding'

globalThis.TextEncoder = TextEncoder
globalThis.TextDecoder = TextDecoder

export function createApp() {
	const app = createSSRApp(App)
	app.use(pinia)
	return {
		app
	}
}